package com.xhh.nphm.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.xhh.nphm.system.domain.AiAnswer;
import com.xhh.nphm.system.domain.AiAnswerLog;

import java.util.List;

/**
 * @description: //TODO
 * @author: sun
 * @date: 2023-12-20 13:58
 * @version 1.0
 */
public interface AiAnswerService extends IService<AiAnswer> {
    /**
     * 记录日志
     * @param aiAnswerLog
     * @return
     */
    int addAiAnswerLog(AiAnswerLog aiAnswerLog);

    /**
     * 通过用户编号查询配置信息
     * @param userId
     * @return
     */
    AiAnswer selectByUserNo(Long userId);

    /**
     * 查询所有配置开启的用户
     * @return
     */
    List<AiAnswer> selectAllConf();
}
